Class yassl.assignnode
All Packages    This Package    Previous    Next

Class yassl.assignnode

java.lang.Object
   |
   +----yassl.pnode
           |
           +----yassl.unarynode
                   |
                   +----yassl.binarynode
                           |
                           +----yassl.assignnode

public class assignnode
extends binarynode
Assignments of all types are subclassed from here. These operators are right associative, so the wiggling needs to be a little different.

Constructor Index

 o assignnode(int, pnode, pnode)

Method Index

 o eval(Env)
an assignment simply overwrites any preexisting information in the binding of the local environment.
 o help(Env)
Return a string to be used in help messages about a particular node.
 o wiggle()
Wiggling for assignment nodes (+=, =, *= ...) works by making sure the operator at the root has strictly smaller precedence than its left child.

Constructors

 o assignnode
  public assignnode(int type,
                    pnode left,
                    pnode right)

Methods

 o wiggle
  public pnode wiggle()
Wiggling for assignment nodes (+=, =, *= ...) works by making sure the operator at the root has strictly smaller precedence than its left child.
Overrides:
wiggle in class binarynode

 o help

  public String help(Env e)
Return a string to be used in help messages about a particular node.
Overrides:
help in class pnode

 o eval

  public pnode eval(Env e) throws yasslError
an assignment simply overwrites any preexisting information in the binding of the local environment.
Overrides:
eval in class pnode


All Packages    This Package    Previous    Next